import { ApiProperty } from "@nestjs/swagger"

export class ListMenuDto {
  @ApiProperty({ description: '', required: false, default: '' })
  readonly page?: number

  @ApiProperty({ description: '', required: false, default: '' })
  readonly pageSize?: number

  // @ApiProperty({ description: '菜品id', required: false, default: '' })
  // readonly id?: number

  @ApiProperty({ description: '菜品名称', required: false, default: '' })
  readonly name: string

  @ApiProperty({ description: '菜品价格', required: false, default: '' })
  readonly fee: number

  @ApiProperty({ description: '菜品类型', required: false, default: '' })
  readonly type: number

  // @ApiProperty({ description: '创建时间', required: false, default: '' })
  // readonly create_time?: number

  // @ApiProperty({ description: '最近操作时间', required: false, default: '' })
  // readonly update_time?: number

  // 时间范围参数
  @ApiProperty({ description: '创建时间', required: false, default: '' })
  readonly start?: number

  @ApiProperty({ description: '创建时间', required: false, default: '' })
  readonly end?: number

  @ApiProperty({ description: '最近操作时间', required: false, default: '' })
  readonly updateStart?: number

  @ApiProperty({ description: '最近操作时间', required: false, default: '' })
  readonly updateEnd?: number

  readonly user_id?: number

  readonly is_new?: number
}